The state board of finance is authorized and directed to regulate, by general regulation or by special orders applicable to individual cases, the safekeeping of bonds or other securities delivered by any bank or savings and loan association as security for deposits of public money. The bonds or securities shall be delivered to a third-party custodian, which shall be a federal reserve bank or branch thereof or in any other bank designated by the state board of finance and qualified to perform custodial functions in the state of New Mexico. The bank or savings and loan association delivering securities to that custodial bank shall enter into a written agreement with the custodial bank containing such conditions that will adequately protect the interests of the state, county, city, school district or institution interested in the bonds and securities.