Rename key_buffer to key_buffer_size