completed version 1.0 of smart cache.