Import/toggle performance optimization