I would side with Dave and look into fixing the issue rather than making flush shared_pool a feature of my system.

Are you pinning your large, most used packages/procs?
Are you certain you are using bind variables when possible on offending code?
Is there any chance shared_pool is under allocated and a larger one is needed?