save_hash() always works with a file, therefore no branch required