Command blocks can alter session state.
If a vendor allows optimizer settings to be controlled at the session level (as some do) then you might find an appropriate 'set' command.
In your case, your vendor most likely requires that clause placed in-li...