If you can provide mongodb with serialized `byte[]`, then I'd suggest you [use externalizers](http://infinispan.org/docs/6.0.x/user_guide/user_guide.html#_plugging_infinispan_with_user_defined_externalizers) since these will perform much better than standard JDK serialization.