Number buffer size optimization