Only decode 4096 bytes per iteration to reduce memory usage.