Implement in-memory store for testing