Added file caching and processing optimization