Hey there! That depends, we'd need to see an example to be sure of what's happening on the compiled code. I think this is one of those cases where the compiler will indeed handle it; the Static Switch is the ideal way to do this. If you have a specific example in mind, please contact us via email@example.com and one of our developers will give it an in-depth examination. Alternatively, you can look into creating your own shader templates; not exactly the same but you do have full control.