Kill the context argument to the callbacks, and pass the session to the pre-encrypt hook when one exists.