Minor performance enhancements

Cached several enum values for faster performance.
Removed dead objects created during essentia texture generation.