Silicon Valley profits soar despite technology slump