The risk is reduced in two ways -- first, a smaller percentage of such packages are actually searched. In practice, the searching happens if there's something overtly suspicious about the package, or if you happen to already be of interest to authorities. If any of my packages have ever been searched, it was done well enough that I didn't notice.
Second, should my devices get damaged then the parcel carrier is on the hook to make me good.