Is it possible to move vaInitialize to a specific functions. Encoder and Decoder may work together and vaInitialize only need call once.