Cost effective acquisition of pharmaceuticals