Remove unused internal variables
Use encodes model inside of media episodes class
Always create the encodes entry
Create temporary files in the media episode class