Minor Optimization in select