Optimized horizontal or