polished the cache hit rate script