added cache definition to the query responsible for producing the preview.nc file. Greatly improved performance by reducing number of hard page faults.