[improvement] Cached first_notice_environment and last_notice_environment on problems (15m)