applied changes from setBufferBase (reduce cache size and consider insert cache latecny