Fixed synchronization issue with cache file buffering