Add cache for require().