Oracle has decreased its workforce by tens of thousands in the past year while spending $70 billion to fund its AI expansion.