Optimized all joins