If the deed is given to secure debts due by installments and is enforced before any one of the installments falls due and there is a surplus of funds as stated in Code Section 44-14-125, the court may retain the funds or order them to be invested to meet the unpaid installments.