Getting the best out of AI without endangering the community