store the buffer which holds the key

do not create a new buffer unless necessary