cache serialization now use spark serialization instance