common: tweak hashmap to consume less memory