Notwithstanding the provisions of §§ 15.2-416, 15.2-541, 15.2-642, 15.2-707 and 15.2-852 requiring the surety bond given by a county treasurer or director of finance to be in an amount of not less than fifteen percent of the amounts to be received annually by such officers, the court or the governing body responsible for fixing the penalty of the bond may in its discretion exclude the amounts to be received for the county from temporary and long-term loans and federal revenue sharing funds when fixing the required minimum bond, and the amount of the bonds to be given shall not exceed the following maximums based on the population of the respective counties unless, for good cause shown, a greater bond is deemed advisable:
Va. Code § 15.2-1529