Apple had $12B in true cash at the end of Q3'19.[1] But the "cost of revenue" was $163B. So they had ~7% of expenses available as cash, which makes sense since you don't want to be selling short-term investments to make payroll. You'd need to keep cash on hand to pay expenses.
> selling short-term investments to make payroll
Payroll is usually met by establishing a "line of credit" with the local bank, because a business's revenue is not on the same schedule as its payroll obligations. Selling short-term investments to make payroll is inefficient (as you imply) but also quite unnecessary.
The kinds of "investments" that allows for are thus quite limited to things such as treasury bonds, certificates of deposit, and some very special case derivative instruments.
Those are not the sort of investments that build houses or get loaned out to businesses.
If you deposit $100 in the bank, you do NOT have cash in the bank. The bank loans it out 9 times over, that's right, your $100 turns into $900 of loans handed out to people and businesses who spend/invest it.
It's the magic of fractional reserve banking.
A massive clue that it is not idle cash is when interest is paid on the balance. That can only happen if the cash is "put to work", i.e. it is NOT cash.
When I helped set up one of these accounts for the startup I was in, we set it up to hold the $10 to $20 million that came in from investors. We bought t-bills through Goldman Sachs. They are very liquid, they pay a marginal return, and they are intrinsically insured. At most we kept $100K in our "regular" bank account[1] to pay salaries and taxes. Paying vendors consisted of simultaneously selling some t-bills, wiring the money to the vendor, and putting the fractional remain into the checking account.
[1] This was the FDIC insurance limit so we didn't hold more than that in a depository account.
It is never sitting around as cash. Again, the fact that it pays interest is the clue that it is not cash, it has been spent "helping anyone".
Nowhere in your description is there money idly sitting around as cash.