Optimization idea that didn't pan out, but may be useful later...