Multithreaded decoding to prevent IO blocking while decoding