Simplified the implementation of the In Memory store.