Buffer downsizing, cleanup