Use shared mem for w