Optimization cache

There is currently a problem pickling FunctionGraph object.
To see the error, 'python tests/test_graph_opt_caching.py'