Lazy loading in memory storage