This is a well-performing format helper that creates a single set of generation objects and synchronizes access to them as appropriate.
This is a fairly simple implementation.