Added preliminary reserve call to the Header::Generate() to prevent unnecessary memory reallocations