Copying the optimization of sumti_tail_1 suggested by alanpost to camxes-exp as well.