Base buffer size on string length rather than record count (roughly 5 MB).