[MAT-329] remove any caching of JNIEnv pointers (even though safe, this is a preventive measure)