Tweaking "fast" scan

For some reason, inlining it gives a x10 speedup.