Silicon Valley startups are rediscovering the benefits of being profitable