BUG: Performance was not being recorded when cache is active

Signed-off-by: Renato Mendes <renato.mendes.1123@gmail.com>