Make OrderedWindow much faster