Instead of hashes, sort the arguments to the functions, then replace them before writing to disk with numeric keys.
Instead of hashes, sort the arguments to the functions, then replace them before writing to disk with numeric keys.