There are always optimizations that can be made in code. Always
However I prefer to focus on more important optimizations that one or two if statements 🙂 I will take a look at the points you mentioned here. For certain, TryReadMappedVariables specifically does need some optimization.