remove unnecessary memory allocation for callback continuations