That's just given me a cold shiver down my spine...
I was bricking it ...
My similar experience, about 8 years ago, involved cash.
I was flying back from Kiyv to Moscow and was carrying $1000 from one colleague to another. Aside from that, I had some of my own cash... mainly some left over Ukrainian grivens I'd planned to spend in duty free, bar, etc. or keep for my next visit.
At the time, the Ukrainians had a strict $1k cash export limit.
For some reason, I'd had the foresight to stuff the extra cash down my pants. But despite this, after going through security, passport and customs, I got pulled aside. They took me into a room (already freaking at this point) and searched my hand luggage through every nook and cranny to see if I had more cash than the $1k I'd declared.
When that was over, the customs lady threatened a strip search, at which point I nearly lost it (thoughts wavering between the horrors of Ukrainian detention and/or how much this would cost me to get out of). But I blurted out something about their $1k limit and once she understood that I was aware of the law, she let me go.