A bit of memory optimization