Allocate unique identifiers and map objects to them