I may look at this in conjunction with #3895. If I can get a good reference implementation going, then it will be easy to port.