I think this would come down to the purpose of the safe.
If the sole point of the safe can be demonstrated to be defeating law enforcement access then the judge won't look very kindly on you.
If you can make a reasonable argument that the safe was there to prevent thieves and crooks and safe crackers from getting their hands on the contents, you have a stronger case.
Judges don't take lightly to people trying to skirt the law in "clever" ways.