Took a lot of tinkering to get 2 inputs to produce a better cost*cycles*(inputs+2) than my new solution 1-input; I think the optima are probably 1 and 3 input - 1 for the raw (inputs+2) minimization, and 3 because that lets you make a clean half-product.