. "Section 34. (a) State officers, departments, institutions and other agencies may, with the written consent of the state treasurer, deposit a portion of the public monies in their possession in national banks, federal savings banks and federal savings and loan associations, lawfully doing business within the commonwealth, and in trust companies, savings banks and cooperative banks chartered under t" . . . .