performance improvement in bm.pm