Utilize BufferedCache in TreeRepository

Change-Id: I9eb1d8b2c886fa4e7bef07f2e0847ec26705c856
Merge "Utilize BufferedCache in TreeRepository"