unfold cipher16 function call and remove redundant MIN call