Database cache optimizations.