Optimized one query