cypher query performance fix