Sped up frequent sequence query slightly