New BTree API, I/O functions