Granted, I am not familiar with German systems for changing laws, but if we doesn't like prosecutors enforcing unjust laws, we should change the laws to make publishing state secrets legal in limited cases (e.g. when it serves a public good), not make show of firing a prosecutor who is enforcing laws and about to retire anyway. It simply isn't wise to rely on prosecutorial discretion for justice to persevere over unjust laws, as that's simply not their role in the judicial system.