Squaraine molecules deposited on indium tin oxide (ITO) substrates modified with phosphonic acids crystalize more orderly than do those on untreated ITO. The as-fabricated electro-resistive memories show the highest ternary device yield observed to date (82%), a narrower switching voltage distribution, and better retention as well as resistance uniformity.