Optimizing the track and traceability of packaging materials