Manufacturing process optimization