Is this logic unique to the way that the riak backend is using bitcask?  If not, shouldn't it be moved into bitcask so that non-riak applications don't have to reimplement it?