Reduce graph generation time