Caching resources with binary serialization.