Handle weird cookie content.
Support for picking keys based on the kid parameter.