Enable threshold for serialization when using pagination