efficient in-memory storage