Performance enhancements for entropy analysis code