[Bug] slowness when multiprofile is enabled