Performance improvements for Fact WireFormat and Snapshot