optimize smart caches for better performance