Compute the formats once and for all