pub fn encode_bundle(encoded: &[Vec<u8>]) -> (Vec<u8>, Vec<u8>)
Encode the server container without accessing storage. Each entry is a script ID slot; supply an empty vector for missing IDs.