Faster level regeneration by using pregenerated array