add missing caching to statistics