Improved database cache specifying file location