Increase max stack size for context searches (bug #3182)