Fixed cache expiration check and using ReadAll funciton instead of ReadFile