> Otherwise anyone can do a few years in jail and then make $x million by telling what he saw while working for CIA/NSA etc.
Why do you think that the only two alternatives is to allow people to sell secrets to foreign governments and sell revelations about illegal actions of the state or to punish both in the same way? Why do you think it is impossible to distinguish those two cases?