Chemically driven cavity growth