Made a few performance optimizations.
Made a few performance optimizations.

endplay/omniplay,endplay/omniplay,endplay/omniplay,endplay/omniplay,endplay/omniplay,endplay/omniplay,endplay/omniplay,endplay/omniplay