DNN-4538 Optimize table ContentItems
added fix from Sebastian for data corruption