improve Treap assertions performance