Improved algorithms in channelCache

Fixes an edge case where it would attempt to get a negative range of
sequences from the view.