Cache the remote API call in the file lookup method.