Getting rid of another linear table scan.