Can a lock be frozen to be more easily broken?

Can a lock be cooled enough to make it easier to break? Because in real life cooling metal can make it brittle, and as a player with no lockpicking skills, i need an alternative way to break locks. If so, would the spell have to be high level, or would a ray of frost suffice?