The code is currently linear but could be sped up by doing asynchronous and multithreading processing.