Move some generation arrays to dynamic allocation