Avoiding to add records for already existing indexes on reload. Part of #2028.