added check results cleanup
STATES_TTL and CHECK_RESULTS_TTL settings are configurable