use 32768 for chunks, seems to be faster