make the buffer size smaller

Actual usage suggests that the original buffer size of 64 * 1024 may
result in slowness in the ruby VM.