Added some optimizations, removed a pessimization.
Removed a memory leak.
Removed a broken optimizations.
Address API improvements.
Another Address API improvement.