Reduced number of allocations during initialization to a constant (also
allowed us to have less calls to free() on shutdown.