Moved genecache code into separate module
Moved genecache code into separate module