Made Binary serializer thread safe