There are many unnecessary JNI globals references to jclass objects and static caching of method/fieldsIDs in the networking native code. These should be cleaned up and only a single static reference should be stored for reuse.