enabled optimization for thunks