tuning BWTSMem performance