move master cache implementation to a seperate source file
add (C) copyright notice