Characterizing and Optimizing Qubit Coherence Based on SQUID Geometry