That is quite a punishment. You must have been bad. It seems like a lot of work for elements that might not be used again… and, how much space/loading time do you expect to save? A gigatron isn't that much to carry as a library.
Have you considered that instead of going through the torture of messing with and evaluating file code, you use a management approach instead.
Categorize elements into smaller groups: frequency-of-use or specialized areas that all users might not need? Maybe a catalog? I assume these are mainly downloaded 3ds files?
But I agree that corrupt files will get you into trouble down the line. How did they get that way and how could they be checked, except by individually opening, testing and imaging?
Since the most efficient Archicad file is GDL code, you are wasting time trying to find a smaller alternative, and binary files eliminate any possibility of extracting code later or intelligent surface-reassignment.
Dwight Atkinson