No more global variables.
One buffer per session ID.