Merged layoutcachethresh and simple Codex.cachelayouts