Absolutely. I’d also say, limit your attack surface without getting into tinfoil hat territory. Most security is a trade off - ideally you’d want to protect everything to the highest possible level, but that’s mostly not practical or necessary. And the mere fact of you being that paranoid will set alarm bells ringing in the heads of border control staff.
So, compartmentalise. Things you don’t need, don’t take them. Things you do need, just suck it up and accept you might get searched (but probably won’t because you’re an innocuous-looking white guy). If you do, change your passwords afterwards.
If it was me, I’d probably take a spare phone and laptop. I wouldn’t put anything on them I didn’t need for the trip. But equally I wouldn’t do anything different from on my main devices (so I’d probably take a subset of my password database) and I wouldn’t bother with all this gubbins of putting an encrypted blahblah up in The Cloud. Unless, maybe, I really needed access to something super secure while I was away.
I backpacked around South America some years ago. Parts of it have a certain… reputation. So you see people with cable locks on their bags and all sorts. Thing is, they stand out like the mutt’s nuts. When planning the trip one of the best bits of advice I was given was simply to not take anything you weren’t willing to lose. Same sort of idea applies here I think.
Also, XKCD nails it as usual…