Those secondary troops would just come under fire themselves. How many layers of troops do you think they can spare just to shoot deserters, and then to shoot those tasked with shooting deserters who themselves turn and run, ad infinitum?
Well it worked well for the Russians in WWII and I believe China has the same plan today. Those tasked are true believers, not ordinary soldiers.