a cache for the classLoader lookups would sound good. Some of the expressions might not even need any checking, for example everything starting with "generatedAlias".