It's not the renderer that would be the inefficiency, it would be the preextraction, which you could change, but it may change the semantics of your service behaviour so you shouldn't switch based on env.
But but but - please don't optimise prematurely. Generally, trying to second guess the JVM (which is a marvelous creation which optimises warm performance in a bunch of clever ways) is a fools game.
I don't know your usecase, but I doubt that you've got a problem which requires this type of streamlining, and there are many other things that can impact performance way over and above slight tweaks in anything but the most simple of services.