cleanup: remove reduce condition check
fix single thread encode issue