Added possible perf improvements
Make sure that c# does not try anything smart here.