Added limit = 300 in cleanup ips cronjob. The actual limit was 10, leaving garbage in database.