optimize hbase flush and with parameter pass