Serialize hashes in MainSaving.java