Exploring cavity dynamics in biomolecular systems