Trim index map prior to save.