Variable protohead not reset causing protoc to run too often. We can still do a bit better.