optimizer can't inspect the value? pretty dumb optimizer, then.
Running the optimizer for every execution of the same query is... not very optimal.
It's not "the value", it's "the values".
Running the optimizer for every execution of the same query is... not very optimal.