Catalytically distinct states captured in a crystal lattice: the substrate-bound and scavenger states of acylaminoacyl peptidase and their implications for functionality.