Precompute and store PRG and CHR size metadata.