Background of the issue:
I am trying to reopen a previously closed ticket: https://wpml.org/forums/topic/wpml-is-using-a-lot-of-queries/ because I have set up a test website where tests can be run and plugins can be disabled. The test website is available at hidden link.