(2) In any criminal case or in any proceeding in any court the deposit may be made with the court or clerk thereof, with the same effect and result as though made with such treasurer, and it shall not be necessary for the money or securities to be delivered to the treasurer. [Amended by 1973 c.836 §317; 1999 c.1051 §237]