buffer scale optimization