I found ValueSizeDB in dbm_api.h but I don't think we employ it anywhere else, which makes me a bit nervous. But the implementation for tokyo and mdb looks sane.