Using cache when fetching with sha512