I believe that it does. I yanked it from Pig's code... perhaps @dvryaboy or @julienledem can comment. I will dive into it a bit more and make sure but I do think it takes into account locality.

That said, if it doesn't, I'd like to make that a TODO rather than a blocker on this issue.