After the tally sheets have been certified, the judges shall close and lock the voting machines and enclose the keys for each voting machine in a separate sealed envelope on which they shall certify the number of the machine, the polling place where it has been used, the number on the seal, and the numbers registered on the public and protective counters.