Indexes don't change untill the entity is killed/remove.
If those ents are map ents, you can in lot of case find them by model, model is like "*17".
If model doesn't start with '*' but "models/....mdl, try to use origin or brush origin, or whatever is usable.
shptools could be very usefull for you.