put native optimizer behind env var