OK, a general solution to config caching is something we might want to think about, but probably not here. I'll raise the issue when I raise a ticket about Java template performance.