Hey guys! Thanks a lot for the response! I figured out the solution with hashes just after I posted the problem, now its running real fast, since we needed some additional processing, the whole thing finished up within a minute!! Much faster than the shell script!