Can smart cities help their residents without hurting their privacy?