Under the hood
HIPAA cache restamping now checks a session-generation token to avoid stale writes
What
The function that restamps the HIPAA-related cache (restampConfirmedCache) now takes a new session-generation parameter, and checks it twice: once before and once after performing an asynchronous write. If the current session generation doesn't match the one passed in, the restamp bails out.
Why
This prevents a restamp write from a superseded, older session generation from landing late and overwriting the cache with stale data after a newer session generation has already taken over.