This way you probably lose the best people, the ones who is in high demand on the market (probably having several informal offers right now), and left with mediocre ones, who are too afraid to look for new jobs.
Layoffs don't happen when everything is hunky dory and just needs some tweaks.
Again, you have in your mind a spherical cow of a layoff.