Vastly improved performance for large files by not shifting arry while trimming prefix lines