Updating flags to reduce memory footprint