Cache items in memory
Improve error logging