Optimize the jms serializer