Fixes issues that might arise when  the in-memory cache is synced with the ba...

...cking store cache