Refactor startup for frame encoding reuse