cache android jni method