experimental optimizations added (this should only affect Edge and EdgeTest classes)