Reduce (we hope) the amount of allocation inside betweenness loop.