Use memory cache if possible