MODE-2391 Fixed the configuration of the document optimization feature.
Merge pull request #1346 from hchiorean/MODE-2391

MODE-2391 Fixed the configuration of the document optimization feature.