Wow! Obvious in hindsight!
Do any databases use this or similar tricks?
BuntDB [0] from @tidwall uses this package as a backing data structure. And BuntDB is in turn used by Tile38 [1]
[0] https://github.com/tidwall/buntdb [1] https://github.com/tidwall/tile38