Use hash to validate that on-disk cache is valid