Make the mac address unique in dhcp entries, make update cache use less memory

http://ralph.allegrogroup.com/buildbot/builders/unittest-ralph-deshipu/builds/150