[core] Avoid naive caching techniques.