move buffer size to static property