Mark encoder as @Sharable