Ensure default compression and encoding when adding layers