it's taken into account...it's whole idea of cost index.
Cost Index is designed to offset simple fuel cost with all other operational costs. If you want strictly the lowest fuel burn (as indicated by the OP), you use ECON with CI=0. Then you will get airspeed and altitude calculations for max range, adjusted for wind.