I'm not sure if it matters at all, but it might be nice to compile/cache this outside of this loop