Fixed require to use a cache.