Optimizing content for machine-readable data packets