Binary write mode for factgen.