CodeInterpreter: Is it possible to store and re-use code that successfully executes?

Hello,

I am working with the CodeInterpreter and am curious if there is a way to store and re-use programs that successfully completed a task. (following this example how to: coding agents)

Let’s say I have an agent that uses code to get a description of an image.

If the agent is able to successfully write this code, can i store that code somewhere, and then let the agent know the next time around it tries to get a description of an image it checks it’s “already proven” functions first?