Saving files with hashes