Micro-optimizations to getset.h functions