Fix for frequent crashes on Android when using native cache