Minimum latency coding