sliceUntil refactor to slice with from and to, to avoid a large range scan in Cassandra