Speedup by shortcutting def: search

Got about 6x speedup on the file http://goo.gl/47aRix (nice almost 5k
lines long file)

Profile before this change: http://pastebin.com/f6uPspRS
Profile after this change: http://pastebin.com/dKrcm1QK