I’m pretty sure Hannah Arendt examined this pretty extensively in Eichmann in Jerusalem and in the relevant chapters in The Origins of Totalitarianism. She described several ways the typical loyal party member is mediocre and eager to follow orders merely for career advancement.
Which is the exact same mechanism non-dictatorships use, which was precisely her point. Just change the metrics of success and the rest will follow.