sanitize objects and pkeys when rebuilding indexes.