Improve the conversion efficiency.

- No preserve constraints when the resource usage is unchanged
- A private UUID generator