Moved to IDs, allocate policies on the java heap