Refactor the way the cache offset is calculated/used
Refactor the way the cache offset is calculated/used

Yeah, this is more inefficient, but when we change to vec indexing it
shouldn't be as bad. Just want to make sure I have the math right.

carols10cents/zopfli,carols10cents/zopfli