Caching the computed hash and creating a new hash when update is called after completing