Computation of selection envelope is now done on database side