Optimizing connection between Python API (FastAPI) and Neptune - Apache TinkerPop