Dynamic re-optimization techniques for stream processing engines and object stores