Why would you want to change the cost index if you are running early/late? Surely the easiest course of action is to override the ECON speed and select the slowest/fastest permissible speed in the FMC, provided this won't run you out of fuel if you accelerate, of course.