Is your feature request related to a problem or challenge?
Similar to issue #19749 and the optimisation of left in #19980, it's worth doing the same for right
Describe the solution you'd like
Implement optimisations similar to #19980
Describe alternatives you've considered
No response
Additional context
No response