What about simply not using a smartphone and accessing your data via internet when you're in the country? You could use Mega (secure file storage) to access your files, for example.
I wonder if border agents could coerce you into giving access to your internet file storage, though.
I wonder if border agents could coerce you into giving access to your internet file storage, though.