Optimize query performance in Azure SQL