(4) The department, in consultation with the department of environmental protection and the executive office of energy and environmental affairs, shall study the feasibility, benefits and costs, including benefits and costs to consumers, producers and the commonwealth, of making the percentage mandates in subsection (3) apply on a statewide average basis rather than for every gallon of diesel moto