This with inline and everything is probably optimized away but it does so little and is still worrying from a performance standpoint that I don't know if it's is buying us enough. I.e., why not just have this logic be written by us at each function instead of going through a big switch.