Add memory checks, configurable intervals per type, improve redis usage, and general fixes