CHIRPS has plenty of reports about security "hassling" pilots who then feel their ability to operate the aircraft safely has been compromised. I have experienced this myself. I try not to be affected by the "challenges" we sometimes get from security going "airside", but when you are held up while your colleague has been allowed through (because of inconsistency) safety is compromised (our procedures are based on a 2 crew concept in the flightdeck).
Presumably this has been "risk assessed" by our policy makers. I think not.
Sadly, a major accident involving loss of life, attributable in part to the issue being discussed here, may bring about a change for the better. What a tragic assessment of the state of our "system".