Tbills or s&p 500

So as the market has gotten more overvalued I've increased my position in t bills to about 20% of my portfolio. I was wondering if this is historically the right move because I see a lot of people who say that you should never hold cash, because being in the market will always be better for longer. But also we're at historical valuations so I'm kind of confused.