Only hash valid files, returns 404 when not found