Adds check against metric data cache corruption.