Depends on how motivated you are to to your current job. On two occasions I've witnessed a fellow developer mentally check themselves out after a round of layoffs, start doing the minimal amount of work necessary, and then spending the rest of their time cracking coding problems. When the next round of layoffs came, they were gone to Amazon and Google.