With that said, I would consider doing layoffs after a profitable quarter to be anti-social / anti-culture. It creates fear and uncertainty in the organization which will cause people to move to 'cash checks until I am fired then I'll leverage this to get a job somewhere else' versus trying hard to make the company their career where they put down roots.
In my opinion, chasing ever increasing profitability as a tech company is cannibalizing future earnings. By cutting over and over in pursuit of more profit, you are trading compound earnings (ie: create new products) for money today by injecting fear into your 'innovation centers'.