Improve performance of createContinuation

This makes projects load faster.