File encoding cache implemented
bug: caching fixed