Adds local cache support

Signed-off-by: Douglas Silva <douglas_hss@hotmail.com.br>