Sustainable lead management in halide perovskite solar cells