Some work on not constructing a cursor for every reference.