Fixes an issue where session execution caches were not cleared when
multiple executions referenced the same graph or algorithm.