Switch to kryo serializer.