How to prepare an efficient internal reference?