Fixed caching issue for DynamicClassLoader.