Instead of storing everything in an in-memory dict we should use redis instead to lower the over 1GB memory usage