Removed temp file on read, replaced with direct https call. This approach is very slow, so I need to optimise by opening a connection and re-using