You are absolutely correct that a better option would be some sort of RPC framework in this case. We are considering this for a future version of GC. It would require an agent of some sort on the target side to be able to handle and dispatch those request.
martin