Threaded the _inventory_lookup function to improve performance  on parallel requests.