use pool for hash in cache key generator