I recommend hitting the GallerySettings table instead of Packages.  And use a WITH (NOLOCK) hint too.