Checking in my obsolete optimizations - maybe I will try again sometime