reducing the memory footprint again