The chancery clerk or municipal clerk shall report to the Secretary of State any reasonable costs incurred by the county or municipality in maintaining unredeemed lands sold for taxes while those lands remain unsold. The Secretary of State shall pay the maintenance costs out of the money deposited into the Land Records Maintenance Fund. The Secretary of State shall certify to the Department of Finance and Administration and to the State Treasurer the amount of maintenance costs allowed to the county and municipality, and the Department of Finance and Administration shall issue a warrant in favor of the county or municipality for the amount of those costs. In no event shall the maintenance costs allowed the county or municipality exceed the market value of the lands or the purchase money received from the sale of those lands.