Implement disc-cache related functions