Fixed potential issue with basic memory operations before initialization of optimized function objects