Similar Items: A Causal Language Modeling Detour Improves Encoder Continued Pretraining