This caching is fairly unnecessary. I think the JIT will generally figure out things like this. But I don't mind this.