Added compression to externalized layers