It still seems to me that the tanween needs to be kept intact whether
there is idgham or not since the idgham is determined by the next
word. Two instances of the same exact indefinite noun may or may not
employ idgham based on what word follows it. If we don't keep the
tanween intact, then for instance it won't be possible to search for
the indefinite form of a noun and get consistent search results
unless both the with idgham and without idgham forms of the words are
searched. But if the tanween is kept intact then it should be
possible to simply substring search for the regular no idgham form of
the word and get both with idgham and without idgham instances.