estimate cache size of koptcontext

This should fix #285.