In order to perform QuerySettings lookup, QueryShapeHash is required.
In situation when $queryStats is off, QueryShapeHash has to be computed.
Currently we avoid computing QueryShapeHash in situation, when no QuerySettings are set for the given tenant.
As part of this ticket we would need to modify the QuerySettingsManager to store QuerySettings in such a way, that we could avoid computing QueryShapeHash in situations when no QuerySettings are set for the given collection. This way we would reduce the performance impact of QuerySettings lookup even further