Cavity hydration dynamics in cytochrome c oxidase and functional implications