Upvote:1
The last time I entered the United States I was pulled aside for additional screening several times during the journey and although I was cleared, I felt very nerve-racked even though I knew I had done nothing wrong.
Do not feel nerve racked. I got my NEXUS card (with a Hungarian passport, as a Canadian resident) a few months after being pulled into secondary. A secondary apparently doesn't leave a permanent stain on your record so much so you can get into a Trusted Traveller program shortly after.
Try to take a more resigned approach. It is our lot. We software developers travel a lot, immigration legislation most of the time is laughably behind compared to what we do (although Canada got up somewhat recently). Our travel patterns thus make us suspects. I have been strip searched twice in Israel in 2007, I guess I should be delighted they "only" unpacked and investigated everything of mine in 2018. This is what it is. I read this question, I personally found it helpful. (Since late 2017 I keep a keychain charm sized stuffed animal in my pocket/hand when going through all this. Definitely helps.)