use cashew in native optimizer