remove fixed buffer size in kryo serializer