Adding a format capability checker to determine when random access is required could improve the runtime.