Add file cache max size and remove oldest functionaility.