The Secretary may purchase, on such terms and conditions as the Secretary deems appropriate, the guaranteed portion of any loan guaranteed under this chapter: Provided, That the Secretary may not pay for any such guaranteed portion of a loan in excess of an amount equal to the unpaid principal balance and accrued interest on the guaranteed portion of the loan. The Secretary may use for such purchases funds from the Rural Development Insurance Fund with respect to rural development loans as defined in section
1929a
(a) of this title and funds from the Agricultural Credit Insurance Fund with respect to all other loans under this chapter. This authority may be exercised only if the Secretary determines that an adequate secondary market is not available in the private sector.