Sun braces itself for downsizing