added view caching to data generator