Changes to retrieve keys and then values in parallel