To know how to scale back a large government, you have to know first what the government is doing, how it is doing what it does and why it does what it does, at best from your own experience in this government, or from working in another government.
Some outsider with big words but no experience is very likely screwing up big time, because he has no clue about most of the very important details. Yes, sometimes you find that wunderkind who is able to pull the stunt and get a new new code base working. But it surely has coded before, it has a general idea what's the point of the whole thing, and it is able to fastly get a strong team together pulling in the same direction. And sometimes you find that person who is able to redo a government as a relative outsider, but that person needs strong experience in how to govern something, and it has to be able to get a strong team together which pulls in the same direction.
And here the parallel between the government and maintaining a code base ends. Because you can create a new codebase while the old is still running. But you can't start a new government and get it up to speed while the old one is still running.
If his spare time project will ever be more than some example routines of peripherical functions and a completely overengineered interface full of place holder code and TBDL comments, then it will take 10 years to get some preliminary modules in production, and you will end up with two codebases of 150 MByte each, partly incompatible, but so interwoven that you can't never get rid again of at least one of it.
And thus it is a rejuvenation, as the planet gets more similar to its primordal state than before.
And in general, I think: Let the governments spy on each other. That's fine with me. Let them play their games with themselves. Hey, even government agencies of the same government spy on each other.
What I am not ok with is if spy agencies that are not allowed to spy on their own population do it via agencies in other countries. The german BND is not allowed wholesale data collections of german people, thus they just ask the NSA to filter it for them. On the other hand, the NSA sends the BND a list of keywords, and the BND uses its investigative power to hand the matching data over to the NSA.
In some way, all legislation around spying powers gets made obsolete if you just have that befriended agency in that befriended country which just happily will provide you with all the data you are not allowed to collect -- they are not subject to your legislation, they don't have to report to your appointed watchdog, and they will not obey the will of your people. All the bad things that are illegal for your people are just outsourced to others, to the mercenaries somewhere else, to the foreign torturers and to the shady deals everyone can deny if they grow sour.
It's quite different to secretly scan the license plate of everyone and compile a database.
If you call the ability of the government to put everything into large, databases shared between all government agencies "socialism", then the U.S. is much more socialist than any EU member state. Even the data retention directive had to be pulled after the European High Court called it unconstitutional in 2014.
Has little to no experience, learns the first tasks. Every step he takes has to be supervised and controlled.
Knows how to do things, you can give him a list of task, and he will work on them until they are finished. Can supervise an apprentice.
Knows his trade. Knows how to organise task. Is able to split a project into several tasks he can either work on himself or give to a journeyman or even to an apprentice. Knows how to teach an apprentice. Knows how to differentiate between a well finished task and one you have to do over again.
What we have here is the question what you have to know in C++ to be on journeyman level.
It's called culture, where people learn from other people and use the knowledge to create new and better works.
From a security point of view, from the moment that Edward Snowden went public you have to operate under the premise that those leaks have happened before, and that other interested parties had and still have unencrypted access to all the documents Edward Snowden took, and to other documents Edward Snowden didn't took because he either didn't knew about them or hadn't had access to them.
Do you really think that the 9/11 hijackers would have been successful with their box cutters had the other passengers also been armed?
Do you really think the 9/11 hijackers would have resorted to box cutters, if they could take genuine weapons on board? Sometimes I think some people seriously lack imagination, and they make up for that with silly sound bits. Yes, the argument about outlawing guns works both ways. If you don't outlaw guns, even outlaws don't have any problems to get any weapon they want.
Stellar rays prove fibbing never pays. Embezzlement is another matter.