read the issue, that was the proposed solution, and reportedely as the switch are on static values, this is candidate to be compiler optimized.
I tested the bench and I have no loss