BTree works with cache but some keys are out of order