Add ID generating method to cachutils