I can't speak to the reasons for the loss of Parmenides' poem, but scholars seem to think that the Nag Hammadi was indeed buried to prevent their destruction after Athanasius condemned non-canonical sources https://en.wikipedia.org/wiki/Nag_Hammadi_library.
Regardless, my point is that at least a written text has the chance of being discovered and understood in the future. The arctic code vault is actually interesting in this regard, but decoding it to find the jewels would likely be extremely challenging. There also is a lot of important technical information that isn't on github.
The point, though, is these texts were doomed when there ceased to be a scribal community that cared about them being copied. If you suppressed the heretics in antiquity, you suppressed the transmission of heretical texts except to the extent those texts were quoted in refutations that scribal communities did care about preserving. Actual destruction of manuscripts was unnecessary at that point, although it still sometimes happened like with the works of Arius and Nestorius. At least with Constantine's condemnation of Arius, it seemed to be more of a damnatio memoriae than an a practical act in furtherance of suppressing heresy.
If you want to talk about early Christian texts, the Didache is instructive. It's orthodox and never was suppressed. It's earlier than much—if not all—of the canonical Greek scriptures. However, the canonical scriptures overshadowed it and it became obscure, to the point where the only known complete copy today is a single 11th century manuscript that was found behind a bookshelf in a monastery in the 19th century.