I think you can inline this ``var`` inside the ``for`` loop to allow the compiler to more aggressively optimize this.