Not a good idea for too many reasons.
Proper way is to issue letters of credit. A currency swap would be better. We have a trade surplus with China which makes this potentially DIFFICULT. We could talk to a deficit country about this.
I strongly believe that this is already done by the way.