small speedup (should save some malloc/free calls)