Optimized TPAEdge

Thanks to slacky for great direction pointers and suggestions!