Offline speedup

Lots of speedups for single record processing offline