make sure payload memory is thread specific