D'oh! you're right, lol, I totally had blinders on (for some reason, I was imagining it was global state), but yeah, then inside the loop of course, but if possible, let's cache it to being called only once (or as few times as needed) within the loop.