Protective layers can stabilize semiconductor photoelectrodes, but making them as thin as possible is not always the best strategy. A silicon, hafnium oxide and nickel system shows how tuning insulator thickness can reduce recombination and improve photovoltage.