Initial cut of hash-based state saving and restoring