The answer is: Working Memory
Working memory refers to the type of memory that will hold certain information in place before moving them to long term memory.
When we receive new information, working memory will play a crucial role in analyzing whether the current new information makes sense and relevant for us in some ways. If the answer is yes, the memory can be passed through long-term memory. If the answer is no, the memory will be discarded.