especially national security - the society should be aware what trade-offs are made for the security of that society, ie. what the real costs and whether the society wants to bear those costs and considers it reasonable.
If you meant specifically trade and state secrets - well, there has been a well established practice of handling such in for example court system and other public proceedings/disclosures/FOIA/etc..