[Issue 9349] Performance problem when trying to remove a value from an indexed attribute