optimized scope validation