Not a big deal to change this, but I've taken to assigning to local vars and using those inside of loops rather than making repeated API calls. It's not about performance, most of the function calls would probably end up in-lined anyway, but it *does* make it easier to use mocks in the tests since you know you'll only have to expect one call rather than N calls.