I don't think border security agents are dumping your entire flash - they're mostly just say, thumbing through messages to make sure you're not attempting to work illegally while on a vacation visa.
Dumping your entire flash would take a serious amount of time and would be so varied from device to device that it'd likely be impossible in practice.