Avoid redundant loading of packages and remove PackageManager.getTemporaryPackage.