Implementation of persistence cookie handling for InMemory Database