Add cache statistics
Having some statistics about the cache usage is important to detect issue like #10099 (closed). I think that just counting the hit and miss gives already good enough insight. Following the #10098 (closed) the statistics could also be dump into the log on SIGUSR1.