tree: Add cache and early boot allocation option

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>