Generate static uids on the fly

This PR resolves #1.

After this PR there is no need for a static generated lookup table.