When cavitated carious lesions are present there is

demineralization by matrix metalloproteinases.

exposure of the dentin protein matrix.

bacterial protease inhibition.

a denatured inorganic phase.