speeded up write_params?
definitely speeded up getting grid info by moving from nc_varget to ncread