improve perfs on chunking