The most basic function of Customs is to know what is coming into the country. Customs has always had the right to search whatever and whoever they want.
If they're searching information, they really need to be putting multi-minute delays on all cross-border internet communications while they search the content.