Better indexing of used node ids.