Canonically, the captchalogue/alchemiter system does have an insane amount of reactions, though.
I wonder if you could implement captchaloguing, and have punched cards as preserved reagents in a reaction? The whole binary AND/OR system would probably be too much trouble, but specific combinations wouldn't be too bad.
Captchalogue cards themselves would make good containers for long-term storage... if it's possible to use a reaction to store an preserved reagent in a container. Is that possible? And if not, is is sufficiently easy to DFHack?
It's pretty much unavoidable that punching a card would only be possible with specific items... or with item types, disregarding the material, I guess.