Speed up sandboxed function containment testing