Use better buffer replacement strategy