Minor memory optimization in libtorrent jni swig interface.