moved caching to sqlite