When a well is drilled with mud, a low permeability mud cake is deposited on the borewall as the drill bit penetrates a porous and permeable formation.