Get rid of unused cache_get_stats().

Stats are still collected in debug builds and printed when cache is
destroyed.