Protecting access to files in the cloud