add cache management for configuration and sessions