Why Oracle has spent $1.8B on layoffs to save money