Added private argument support for encoder path
Minor performance optimization