optimise LookupRecord to run faster count query first
optimisations to row and cell display, including preprocess