Build the KS manifest in memory.