To address the overhead incurred in the JNI due to
reflection and serialization, this paper proposes to cache class,
field, and method information obtained from reflection for
subsequent usage. It also provides a function to pin objects to
their memory locations such that they can be accesses through
the known reference. The Android emulator is used to evaluate
the performance of these techniques and we observed that there
was 10- 30 % performance gain in the Java Native Interface for
two Android applications.