How does Py2Neo use parameters to make repeat queries faster?

I am trying to make a simple API to interact with my database. Given input of an ID look up I want to return a subgraph of all related Ids. My question is how can I parameterize this in Py2Neo so I use the same query execution plan in Cache to speed up the API. I have seen how to do this in Cypher and Cypher-shell. Wondering what it takes to do this in Py2Neo..

There are several functions in py2neo that take a statement and parameters



Thanks for the explanation. Cheers.