Reduce memory overhead by separating request and response type