Speed up finding of sandboxed methods

Use a DenseSet instead of a vector, because the latter results in O(n^2)
operations whereas the former is O(n).

Also reduce some output