caching hash value