Refactored id lookup
Parallel let%lwt where possible to avoid waiting for results