enable caching for critical functions
enable logging