Improved the cache hit/miss test a bit.