But the 4k limit on binvars is not a hardlimit, you can easily change it using the "numbytes" parameter of sockread.