Improve logic to get job recs for job array

Add logic to use hash table for improved performance