added cache and appstats

Signed-off-by: Lyndon Michael Bibera <secret.transaction@gmail.com>