You’re right! Which is why there’s a prededentially appointed panel containing a national security official, foreign service official, sociologist, economist, a scientist or engineer, and professional historian to help make these determinations and whether the information is deemed safe to release. Many great minds to make the decision rather than a single individual.
Edit: Assuming Schumer’s amendment passes that is.
Having been there, that’s a lot less than I would have imagined it to be. But that means nothing.