Interesting thought.. Do you consider the points A and B to be inside the cavity as well? (By the way, I don't see any picture attached.)
Any thoughts about how such a "device" would look like?
Normally you'd use a Halfwaveplate to rotate polarization. This will, however, not work in your...