cypher cleanup func to speed tests