Handle piecewise-linear terms more efficiently.