proper permissions when creating cache