Updated the chunk size to 8192 bytes for better performance.