This is a perfect example of why the correct place to fight this is at the judiciary.
Trying to outsmart the border guards essentially makes you a smuggler. Sure you're trying to smuggle your own personal data rather anything nefarious, but either way - you're trying to beat them at their own game, on their own turf, where they have every advantage, constant practice, and effectively get to write their own rules.
Every fantastic example you dream up, you have to pray no-one's thought of it before. The game's rigged.
The only real way to win is to double down on the legal position of such searches.
Trying to outsmart the border guards essentially makes you a smuggler. Sure you're trying to smuggle your own personal data rather anything nefarious, but either way - you're trying to beat them at their own game, on their own turf, where they have every advantage, constant practice, and effectively get to write their own rules.
Every fantastic example you dream up, you have to pray no-one's thought of it before. The game's rigged.
The only real way to win is to double down on the legal position of such searches.