Implement in memory state storage.