Title: Dynamic grid embedding: optimizing the compression of partial grids