Custom meta fields content not retained in revisions or when restoring from trash


I have noticed on many occasions that when either:

1. Restoring a post revision
2. Restoring a deleted post

The post meta is not kept from any custom meta fields generated by custompress.

Is there a work around for this? Example spotted this post with a possible solution although I imagine it would need building into the code:

Many thanks,