support cache hit rate statistics
(cherry picked from commit 1e61274)