Testing indicated that handles are monotonically increasing, especially local ones which were checked to see how they differ from global handles. I can remove these checks, they probably aren't so useful. But yeah, I see now that there's something wrong about it when the index wraps around.