Added compression for auto-embedded references.
Added a disable compression option.