Binary protocol and thread safety