Device identification using optimized digital footprints