only cache slow queries