This is where I'd pre-compute the location indexes for each selector in the columns.