make loader generation code sensitive to cache override option