Authorization optimizations need an exact semantic baseline
Before optimizing authorization SQL, verify the deployed helper definitions and execution context—not just the tracked query text. A faster candidate can pass extensive tests against a different baseline while changing access in production. Preserve equality and NULL behavior; tr…