Of course they have to check deep or just on surface , but it is possible to do , IF following the rules with proof ....
But i took the example that you would be living in Thailand , not traveling with those 400 K to home country , because that would be a hassle
And in your home country you could have the same hassle
PS : you should followed the custom officer when he went counting the money by machine !!