fixed increasing memory usage with SHAKE and DD