optimize peak calculation of silent buffers