Optimized retrieval of track length