Make configuring cache and buffer size more easy