Performance optimizations for centro and perfshuff analysis