Change default buffer size

Change default buffer size from 4096 to 512, to improve support for
modern interfaces, many of which don't support large buffer sizes.