Significantly speed up creation of meta data in mock by using local scope explicitly.