Use hash for cache