Is is possible to route IncomingWorklistRequests Lua or Python to a Cloud Insance via a local Orthanc ?

I have a scenario like this:
No TLS

Modality --------> Orthanc Instance on Local Intranet

DICOM TLS

Orthanc Cloud Instance

I’m kind of wondering if would be possible to route WorklistFind Requests and potentially other requests (C-find) using the DICOM protocol through the Local Instance, to the Cloud Instance, and back again such that the results are returned to the calling Modality, largely because TLS connections are pretty hard to setup, except between Orthanc instances.

A question related to that is: Can an Orthanc instance support TLS and non-TLS conections at the same time if TLS is enabled, but some modalities have TLS set to True and others have it set to False. Dual support like that would also be useful.

I am already using the Python Plugin, e.g.

def OnWorklist(answers, query, issuerAet, calledAet):

to process requests while retrieving MWL datasets from a DB instead of the file system, but not in a scenario like described above. It would have to relay the request to the Cloud Instance and then return the results to the Modality.

I noticed that there is a Lua function for editing the queries.

function IncomingWorklistRequestFilter(query, origin) PrintRecursive(query)

/sds