Limit scope of unsafe blocks