Set buffer size to 1MB