optimized memory usage of multi hash index