I don’t have a solution to your problem but I came across this discussion which seemed relevant to the issue you are trying to solve:
Thanks, Dilip.