Try to fix cache deserialization errors on older platforms

Refer to the commit message of 8b04dfcd4d347989c079522001f47d3a414563b3
for more details about the errors I'm talking about.