simplified text file caching