optimize rabin chunking