Of course this is all true to the extent that you don't mind spending hours or days in "secondary" since the government does have the right to submit you to inspection at the border. It is also limited by your willingness to pursue your rights, and the government's willingness to abide by court rulings.
I’m quite tired of the executive branch being able to trot out the “for national security” boilerplate argument with minimal data or record keeping to assess the efficacy of various systems and procedures.
I’ve been kept in some random airport security room for something like 2 hours while government officials try to sort out some accidental name collision. I got no useful explanation during or after. I am lucky I didn’t miss my connecting flight. I bet there is currently minimal incentive (if any) to reduce this citizen hassling. Requiring metrics on how much time squandering happens seems like a small step in the right direction.