As others pointed out, the problem with this is that you end up with a government that can target any reporter by claiming they have "classified materials". No need to prove what those materials are (because they are classified). This is how third world countries choke journalists.
In the USA, the claim has to be convincing to a judge, so it’s not quite as arbitrary as you indicate.