Only do work on index change if the index actually changes