Make Encoders singletons