Reduce the size of the cached plan in the EE; purge the string memory when queries finishes