use memory cache for joins