Added cache for graph results so that it persist over pages