How I used DynamoDB as a long-term cache layer for AppSync