Memory is a very complex process. When a lie is made, the collateral senses are not linked to the lie and cannot be re-created or memorized.
So, when confronting a lie, interrogating on the then present sense impressions will usually reveal the lie.
Of course, it is what our parents tried to teach us when we were kids to discourage us from telling lies.
Accompanied by the belt, of course!