Notice this code may chenge every refresh - because merged version of lib does not serach for best mask, but instead select mask by random (to improve speed)