Having been experienced this myself a few times I can only say one thing…be nice to them.
Having witnessed it, the more confrontational people are about it. The more the team will take apart your bags, search everything and make it a whole process.
Be polite, answer all questions as needed, it will make it go much quicker.