I cached it for the entire function. There were other loops in there as well.