Add cached generators for generating e.g. thread pools.