Resolving the earlier problem of huge memory consumption using Redis