fix cache lookup and don't loop over chunks in search

way faster to just use bufftools.indexof