optimize smart worker