Thermodynamics and quantum criticality in cuprate superconductors