bwt performance improvements