A new salt-forming method gives perovskite solar cells a record 27.2% efficiency and improved long-term stability.