fixed cache for multiple instances

Signed-off-by: Thiago Rondon <thiago.rondon@gmail.com>