[fix] Cache logging statement