Fix memory leak

Keep only the compressed trees, not all the POJO tree pieces.