Added is_active flag. Default state: optimizer is disabled