Efficient handling of large layers