Use visibility:hidden and explicit sizes to prevent flickering
Rename lockSize() to more descriptive cacheSize()