precomputing quantiles only if possible to avoid crash after chain is
done