GEOS-5611 Avoid security migration whenever possible