improve rrd_graph performance for large (>1000) number of *DEF variables by using hash_table lookups instead of linear search