It could be cleaner to just access it when constructed, to allow using with vanilla encoder?