Can you return immediately if the 'ADVANCED_SECURITY' feature flag is turned off, rather than doing these 5 checks?